PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-09 10:11:40.028054+00:00 (UTC)
In US/Central Time, this is 2024-03-09 04:11:40.028054-06:00
## Visualize Principal Component 1
pc1, loadings = pca_index.pca(dfn, module="scikitlearn")
pc1.plot();
../../_images/8e845775f955bb5d7aebdbe5927e3e4b5df69fd13de0f458fd8dea61648f6b49.png
# Simple version
fig = px.line(pc1)
fig.show()
vix = df.loc[:,['VIX']]
vix.plot()
<Axes: xlabel='DATE'>
../../_images/4239855206c06609bfbdb0afb589dea35ec36eafc44aae2e4c5d1646cfa813d1.png
fig = px.line(vix)
fig.show()
../../_images/8b1bd6b8ea6751755116493814491c17f2581a5dc67ce43717f59afc1963f69c.png